/* 基础样式 */
html, body, .app-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 租户后台管理样式 - 现代化主题 */
:root {
    /* 主题色彩系统 */
    --tenant-primary-color: #6366f1;
    --tenant-primary-hover: #5855eb;
    --tenant-primary-light: #a5b4fc;
    --tenant-secondary-color: #64748b;
    --tenant-accent-color: #06b6d4;
    --tenant-success-color: #10b981;
    --tenant-warning-color: #f59e0b;
    --tenant-danger-color: #ef4444;
    /* 背景色彩 */
    --tenant-bg-color: #f8fafc;
    --tenant-sidebar-bg: #ffffff;
    --tenant-header-bg: #ffffff;
    --tenant-surface-bg: #ffffff;
    /* 文字色彩 */
    --tenant-text-primary: #1e293b;
    --tenant-text-secondary: #64748b;
    --tenant-text-tertiary: #94a3b8;
    /* 边框和阴影 */
    --tenant-border-color: #e2e8f0;
    --tenant-border-light: #f1f5f9;
    --tenant-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --tenant-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --tenant-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* 圆角 */
    --tenant-radius: 8px;
    --tenant-radius-sm: 6px;
    --tenant-radius-lg: 12px;
    /* 动画 */
    --tenant-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 租户后台主容器 */
.tenant-admin-wrapper {
    background-color: var(--tenant-bg-color);
    min-height: 100vh;
}

/* 租户品牌区域 - 现代化设计 */
.tenant-brand {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--tenant-border-color);
    background: var(--tenant-header-bg);
    position: relative;
}

/* 租户头部信息区域 */
.tenant-header-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.tenant-brand-container {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--tenant-primary-color) 0%, var(--tenant-primary-hover) 100%);
    border-radius: var(--tenant-radius-lg);
    box-shadow: var(--tenant-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: var(--tenant-transition);
    max-width: 320px;
}

    .tenant-brand-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.02) 100%);
        pointer-events: none;
    }

    .tenant-brand-container:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(99, 102, 241, 0.3);
    }

.tenant-info {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.tenant-name {
    color: white !important;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 4px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tenant-id {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.9;
    font-family: 'Consolas', 'Monaco', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-block;
}

.tenant-logo {
    width: 48px;
    height: 48px;
    margin-right: 16px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: var(--tenant-transition);
    background: var(--tenant-surface-bg);
}

    .tenant-logo:hover {
        transform: scale(1.05) rotate(5deg);
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

/* 覆盖AMIS默认样式，适配租户主题 - 现代化设计 */
.tenant-admin-wrapper .cxd-Layout-brand {
    background: var(--tenant-header-bg) !important;
    border-bottom: 1px solid var(--tenant-border-color) !important;
    box-shadow: var(--tenant-shadow) !important;
}

.tenant-admin-wrapper .cxd-Layout-aside {
    background: var(--tenant-sidebar-bg) !important;
    border-right: 1px solid var(--tenant-border-color) !important;
    box-shadow: var(--tenant-shadow) !important;
    transition: var(--tenant-transition) !important;
}

    .tenant-admin-wrapper .cxd-Layout-aside:hover {
        box-shadow: var(--tenant-shadow-md) !important;
    }

.tenant-admin-wrapper .cxd-Layout-header {
    background: linear-gradient(135deg, var(--tenant-header-bg) 0%, var(--tenant-bg-color) 100%) !important;
    border-bottom: 1px solid var(--tenant-border-color) !important;
    box-shadow: var(--tenant-shadow) !important;
    padding: 16px 24px !important;
    backdrop-filter: blur(8px) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
}

.tenant-admin-wrapper .cxd-Layout-body {
    background: var(--tenant-bg-color) !important;
    padding: 24px !important;
    min-height: calc(100vh - 60px) !important;
}

/* 租户侧边栏导航样式 - 现代化设计 */
.tenant-admin-wrapper .cxd-AsideNav {
    padding: 16px 12px !important;
}

.tenant-admin-wrapper .cxd-AsideNav-item {
    margin-bottom: 4px !important;
}

    .tenant-admin-wrapper .cxd-AsideNav-item > a {
        color: var(--tenant-text-primary) !important;
        border-radius: var(--tenant-radius) !important;
        margin: 0 !important;
        padding: 12px 16px !important;
        transition: var(--tenant-transition) !important;
        border: 1px solid transparent !important;
        position: relative !important;
        font-weight: 500 !important;
    }

        .tenant-admin-wrapper .cxd-AsideNav-item > a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 0;
            background: var(--tenant-primary-color);
            border-radius: 2px;
            transition: var(--tenant-transition);
        }

        .tenant-admin-wrapper .cxd-AsideNav-item > a:hover {
            background: rgba(99, 102, 241, 0.08) !important;
            color: var(--tenant-primary-color) !important;
            border-color: var(--tenant-border-color) !important;
            transform: translateX(4px) !important;
        }

            .tenant-admin-wrapper .cxd-AsideNav-item > a:hover::before {
                height: 20px;
            }

    .tenant-admin-wrapper .cxd-AsideNav-item.is-active > a {
        background: linear-gradient(135deg, var(--tenant-primary-color) 0%, var(--tenant-primary-hover) 100%) !important;
        color: white !important;
        border-color: var(--tenant-primary-color) !important;
        box-shadow: var(--tenant-shadow-md) !important;
        transform: translateX(6px) !important;
    }

        .tenant-admin-wrapper .cxd-AsideNav-item.is-active > a::before {
            height: 24px;
            background: rgba(255, 255, 255, 0.3);
        }

/* 租户按钮样式 - 现代化设计 */
.tenant-admin-wrapper .cxd-Button--primary {
    background: linear-gradient(135deg, var(--tenant-primary-color) 0%, var(--tenant-primary-hover) 100%) !important;
    border: none !important;
    border-radius: var(--tenant-radius) !important;
    box-shadow: var(--tenant-shadow) !important;
    transition: var(--tenant-transition) !important;
    font-weight: 500 !important;
    position: relative !important;
    overflow: hidden !important;
}

    .tenant-admin-wrapper .cxd-Button--primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.5s ease;
    }

    .tenant-admin-wrapper .cxd-Button--primary:hover {
        background: linear-gradient(135deg, var(--tenant-primary-hover) 0%, #4338ca 100%) !important;
        box-shadow: var(--tenant-shadow-md) !important;
        transform: translateY(-1px) !important;
    }

        .tenant-admin-wrapper .cxd-Button--primary:hover::before {
            left: 100%;
        }

    .tenant-admin-wrapper .cxd-Button--primary:active {
        transform: translateY(0) !important;
    }

.tenant-admin-wrapper .cxd-Button--secondary {
    background: var(--tenant-surface-bg) !important;
    border: 1px solid var(--tenant-border-color) !important;
    color: var(--tenant-text-primary) !important;
    border-radius: var(--tenant-radius) !important;
    transition: var(--tenant-transition) !important;
    font-weight: 500 !important;
}

    .tenant-admin-wrapper .cxd-Button--secondary:hover {
        background: var(--tenant-primary-light) !important;
        border-color: var(--tenant-primary-color) !important;
        color: var(--tenant-primary-color) !important;
        transform: translateY(-1px) !important;
        box-shadow: var(--tenant-shadow) !important;
    }

/* 租户表格样式 */
.tenant-admin-wrapper .cxd-Table-table {
    background: var(--tenant-surface-bg) !important;
    border-radius: var(--tenant-radius-lg) !important;
    box-shadow: var(--tenant-shadow) !important;
    border: 1px solid var(--tenant-border-color) !important;
    overflow: hidden !important;
}

    .tenant-admin-wrapper .cxd-Table-table thead {
        background: linear-gradient(135deg, var(--tenant-bg-color) 0%, var(--tenant-border-light) 100%) !important;
        border-bottom: 2px solid var(--tenant-border-color) !important;
    }

        .tenant-admin-wrapper .cxd-Table-table thead th {
            background: transparent !important;
            color: var(--tenant-text-primary) !important;
            font-weight: 600 !important;
            padding: 16px 20px !important;
            border: none !important;
            font-size: 14px !important;
            text-transform: uppercase !important;
            letter-spacing: 0.5px !important;
        }

    .tenant-admin-wrapper .cxd-Table-table tbody tr {
        transition: var(--tenant-transition) !important;
        border-bottom: 1px solid var(--tenant-border-light) !important;
    }

        .tenant-admin-wrapper .cxd-Table-table tbody tr:hover {
            background: rgba(99, 102, 241, 0.04) !important;
            transform: translateY(-1px) !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        }

    .tenant-admin-wrapper .cxd-Table-table tbody td {
        padding: 16px 20px !important;
        border: none !important;
        vertical-align: middle !important;
    }

/* 租户表单样式 - 现代化设计 */
.tenant-admin-wrapper .cxd-Form {
    background: var(--tenant-surface-bg) !important;
    border-radius: var(--tenant-radius-lg) !important;
    box-shadow: var(--tenant-shadow) !important;
    border: 1px solid var(--tenant-border-color) !important;
    overflow: hidden !important;
}

.tenant-admin-wrapper .cxd-Form-item {
    margin-bottom: 20px !important;
}

    .tenant-admin-wrapper .cxd-Form-item > .cxd-Form-label {
        color: var(--tenant-text-primary) !important;
        font-weight: 600 !important;
        margin-bottom: 8px !important;
        font-size: 14px !important;
    }

        .tenant-admin-wrapper .cxd-Form-item > .cxd-Form-label.is-required::before {
            color: var(--tenant-danger-color) !important;
            content: '* ' !important;
        }

/* 租户输入框样式 - 现代化设计 */
.tenant-admin-wrapper .cxd-Form-control {
    border: 1px solid var(--tenant-border-color) !important;
    border-radius: var(--tenant-radius) !important;
    background: var(--tenant-surface-bg) !important;
    color: var(--tenant-text-primary) !important;
    transition: var(--tenant-transition) !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
}

    .tenant-admin-wrapper .cxd-Form-control:focus {
        border-color: var(--tenant-primary-color) !important;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
        outline: none !important;
        background: white !important;
    }

    .tenant-admin-wrapper .cxd-Form-control:hover:not(:focus) {
        border-color: var(--tenant-primary-light) !important;
    }

    .tenant-admin-wrapper .cxd-Form-control.is-error {
        border-color: var(--tenant-danger-color) !important;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    }

/* 租户选择器样式 - 现代化设计 */
.tenant-admin-wrapper .cxd-Select {
    border-radius: var(--tenant-radius) !important;
}

.tenant-admin-wrapper .cxd-Select-control {
    border: 1px solid var(--tenant-border-color) !important;
    border-radius: var(--tenant-radius) !important;
    background: var(--tenant-surface-bg) !important;
    transition: var(--tenant-transition) !important;
    min-height: 44px !important;
}

    .tenant-admin-wrapper .cxd-Select-control:hover {
        border-color: var(--tenant-primary-light) !important;
    }

    .tenant-admin-wrapper .cxd-Select-control.is-focused {
        border-color: var(--tenant-primary-color) !important;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
    }

.tenant-admin-wrapper .cxd-Select-option.is-highlight,
.tenant-admin-wrapper .cxd-Select-option:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--tenant-primary-color) !important;
}

.tenant-admin-wrapper .cxd-Select-option.is-selected {
    background: var(--tenant-primary-color) !important;
    color: white !important;
}

/* 租户日期选择器样式 - 现代化设计 */
.tenant-admin-wrapper .cxd-DatePicker-toggler {
    border: 1px solid var(--tenant-border-color) !important;
    border-radius: var(--tenant-radius) !important;
    background: var(--tenant-surface-bg) !important;
    padding: 12px 16px !important;
    transition: var(--tenant-transition) !important;
    min-height: 44px !important;
}

    .tenant-admin-wrapper .cxd-DatePicker-toggler:hover {
        border-color: var(--tenant-primary-light) !important;
    }

    .tenant-admin-wrapper .cxd-DatePicker-toggler.is-focused {
        border-color: var(--tenant-primary-color) !important;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
    }

/* 租户卡片样式 */
.tenant-admin-wrapper .cxd-Panel {
    background: var(--tenant-surface-bg) !important;
    border-radius: var(--tenant-radius-lg) !important;
    box-shadow: var(--tenant-shadow) !important;
    border: 1px solid var(--tenant-border-color) !important;
    overflow: hidden !important;
    transition: var(--tenant-transition) !important;
}

    .tenant-admin-wrapper .cxd-Panel:hover {
        box-shadow: var(--tenant-shadow-md) !important;
        transform: translateY(-2px) !important;
    }

.tenant-admin-wrapper .cxd-Panel-heading {
    background: linear-gradient(135deg, var(--tenant-bg-color) 0%, var(--tenant-border-light) 100%) !important;
    border-bottom: 1px solid var(--tenant-border-color) !important;
    border-radius: 0 !important;
    padding: 16px 24px !important;
}

.tenant-admin-wrapper .cxd-Panel-title {
    color: var(--tenant-text-primary) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

.tenant-admin-wrapper .cxd-Panel-body {
    padding: 24px !important;
}

/* 租户徽章样式 */
.tenant-admin-wrapper .cxd-Badge {
    background: var(--tenant-primary-color) !important;
    border-radius: var(--tenant-radius) !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    padding: 4px 8px !important;
    letter-spacing: 0.5px !important;
}

.tenant-admin-wrapper .cxd-Badge--success {
    background: var(--tenant-success-color) !important;
}

.tenant-admin-wrapper .cxd-Badge--warning {
    background: var(--tenant-warning-color) !important;
}

.tenant-admin-wrapper .cxd-Badge--danger {
    background: var(--tenant-danger-color) !important;
}

/* 租户标签样式 */
.tenant-admin-wrapper .cxd-Tag {
    border-radius: var(--tenant-radius) !important;
    font-weight: 500 !important;
    transition: var(--tenant-transition) !important;
}

    .tenant-admin-wrapper .cxd-Tag:hover {
        transform: translateY(-1px) !important;
        box-shadow: var(--tenant-shadow) !important;
    }

.tenant-admin-wrapper .cxd-Tag--primary {
    background: linear-gradient(135deg, var(--tenant-primary-color) 0%, var(--tenant-primary-hover) 100%) !important;
    border: none !important;
    color: white !important;
}

.tenant-admin-wrapper .cxd-Tag--success {
    background: linear-gradient(135deg, var(--tenant-success-color) 0%, #059669 100%) !important;
    border: none !important;
    color: white !important;
}

.tenant-admin-wrapper .cxd-Tag--warning {
    background: linear-gradient(135deg, var(--tenant-warning-color) 0%, #d97706 100%) !important;
    border: none !important;
    color: white !important;
}

.tenant-admin-wrapper .cxd-Tag--danger {
    background: linear-gradient(135deg, var(--tenant-danger-color) 0%, #dc2626 100%) !important;
    border: none !important;
    color: white !important;
}

/* 租户分页样式 */
.tenant-admin-wrapper .cxd-Pagination-pager > .cxd-Pagination-pager-item.is-active {
    background-color: var(--tenant-primary-color) !important;
    border-color: var(--tenant-primary-color) !important;
}

/* 租户开关样式 */
.tenant-admin-wrapper .cxd-Switch.is-checked {
    background-color: var(--tenant-primary-color) !important;
}

/* 租户进度条样式 */
.tenant-admin-wrapper .cxd-Progress-bar {
    background-color: var(--tenant-primary-color) !important;
}

/* 租户链接样式 */
.tenant-admin-wrapper .cxd-Button--link {
    color: var(--tenant-primary-color) !important;
}

    .tenant-admin-wrapper .cxd-Button--link:hover {
        color: #1565c0 !important;
    }

/* 租户面包屑样式 */
.tenant-admin-wrapper .cxd-Breadcrumb-item.is-active {
    color: var(--tenant-primary-color) !important;
}

/* 租户对话框样式 */
.tenant-admin-wrapper .cxd-Modal-content {
    border-radius: var(--tenant-radius) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* 租户通知样式 */
.tenant-admin-wrapper .cxd-Toast--info {
    background-color: var(--tenant-primary-color) !important;
}

/* 租户特有的状态样式 */
.tenant-status-active {
    color: #4caf50 !important;
    font-weight: 500;
}

.tenant-status-inactive {
    color: #f44336 !important;
    font-weight: 500;
}

.tenant-status-expired {
    color: #ff9800 !important;
    font-weight: 500;
}

/* 租户数据统计卡片 */
.tenant-stats-card {
    background: linear-gradient(135deg, var(--tenant-primary-color), #1565c0);
    color: white;
    border-radius: var(--tenant-radius);
    padding: 20px;
    margin-bottom: 20px;
}

    .tenant-stats-card .stats-number {
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .tenant-stats-card .stats-label {
        font-size: 14px;
        opacity: 0.9;
    }

/* 租户品牌头部区域增强 */
.tenant-brand-enhanced {
    background: linear-gradient(90deg, var(--tenant-primary-color), #1565c0);
    color: white;
    padding: 15px 20px;
    border-radius: var(--tenant-radius) var(--tenant-radius) 0 0;
}

    .tenant-brand-enhanced .tenant-logo {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .tenant-brand-enhanced .tenant-name {
        color: white;
        font-size: 16px;
        font-weight: 600;
    }

/* 响应式布局 */
@media (max-width: 768px) {
    .tenant-brand {
        padding: 8px 12px;
    }

    .tenant-brand-container {
        padding: 8px 12px;
        border-radius: 8px;
    }

    .tenant-logo {
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }

    .tenant-name {
        font-size: 16px;
    }

    .tenant-id {
        font-size: 12px;
    }

    .header-actions {
        gap: 8px;
    }

    .tenant-admin-wrapper .cxd-Layout-header {
        padding: 8px 16px !important;
    }

    .tenant-stats-card {
        padding: 15px;
    }

        .tenant-stats-card .stats-number {
            font-size: 24px;
        }
}

@media (max-width: 480px) {
    .tenant-brand-container {
        padding: 6px 10px;
        margin-right: 8px;
    }

    .tenant-info {
        display: none; /* 在很小的屏幕上隐藏文字，只显示logo */
    }

    .tenant-logo {
        width: 32px;
        height: 32px;
        margin-right: 0;
    }

    .header-actions {
        gap: 6px;
    }

    .tenant-admin-wrapper .notification-btn {
        padding: 6px 8px !important;
    }
}

/* 现代化深色主题 */
@media (prefers-color-scheme: dark) {
    .tenant-preloader {
        background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.94) 0%, rgba(2, 6, 23, 0.97) 35%, rgba(0, 0, 0, 1) 100%);
    }

        .tenant-preloader::before {
            background: conic-gradient( transparent, rgba(99, 102, 241, 0.06), transparent, rgba(139, 92, 246, 0.04), transparent );
        }

    .preloader-content {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(99, 102, 241, 0.2);
        box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(148, 163, 184, 0.1);
    }

    .logo-placeholder {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
        border-color: rgba(99, 102, 241, 0.3);
        box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(148, 163, 184, 0.1);
    }

        .logo-placeholder i {
            color: #a5b4fc;
            filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
        }

    .loading-title {
        color: white;
        background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(203, 213, 225, 0.9) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .progress-text {
        color: #cbd5e1;
    }

    .progress-percent {
        color: #a5b4fc;
    }

    .loading-tips .tip {
        color: #94a3b8;
    }
}

/* 头部操作区域 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 通知按钮优化 */
.tenant-admin-wrapper .notification-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    color: #666 !important;
    transition: all 0.2s ease !important;
}

    .tenant-admin-wrapper .notification-btn:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

/* 用户头像优化 */
.tenant-admin-wrapper .cxd-Avatar {
    border: 2px solid rgba(25, 118, 210, 0.2) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

    .tenant-admin-wrapper .cxd-Avatar:hover {
        border-color: var(--tenant-primary-color) !important;
        box-shadow: 0 3px 10px rgba(25, 118, 210, 0.3) !important;
        transform: translateY(-1px);
    }

/* 用户下拉菜单优化 */
.tenant-admin-wrapper .cxd-DropDown-button {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    color: #333 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

    .tenant-admin-wrapper .cxd-DropDown-button:hover {
        background: rgba(25, 118, 210, 0.05) !important;
        border-color: var(--tenant-primary-color) !important;
        color: var(--tenant-primary-color) !important;
    }

/* ===== 租户预加载器样式 - 现代化设计 v2.0 ===== */
.tenant-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.97) 35%, rgba(226, 232, 240, 1) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

    .tenant-preloader::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: conic-gradient( transparent, rgba(99, 102, 241, 0.08), transparent, rgba(139, 92, 246, 0.06), transparent );
        animation: rotateBackground 25s linear infinite;
        opacity: 0.6;
    }

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.tenant-preloader.show {
    opacity: 1;
    visibility: visible;
}

.tenant-preloader.fade-out {
    opacity: 0;
    transform: scale(1.05);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.preloader-container {
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.preloader-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 48px 36px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.3s ease;
}

    .preloader-content:hover {
        transform: perspective(1000px) rotateX(0deg) translateY(-2px);
    }

    .preloader-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.08), transparent);
        animation: shimmer 3s ease-in-out infinite;
    }

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* 现代化Logo区域 */
.tenant-logo-loading {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
}

.logo-placeholder {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: logoFloat 4s ease-in-out infinite;
    overflow: hidden;
}

    .logo-placeholder::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: conic-gradient( transparent, rgba(99, 102, 241, 0.1), transparent );
        animation: logoRotate 8s linear infinite;
    }

@keyframes logoRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.logo-placeholder i {
    font-size: 36px;
    color: #6366f1;
    text-shadow: 0 2px 20px rgba(99, 102, 241, 0.3);
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.2));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.1));
    }

    50% {
        transform: translateY(-12px) scale(1.02);
        filter: drop-shadow(0 16px 32px rgba(99, 102, 241, 0.15));
    }
}

.loading-spinner {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 3px solid transparent;
    border-top: 3px solid rgba(99, 102, 241, 0.6);
    border-right: 3px solid rgba(139, 92, 246, 0.4);
    border-bottom: 3px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    animation: modernSpin 2s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.2));
}

@keyframes modernSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.05);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* 现代化标题 */
.loading-title {
    color: #1e293b;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 36px 0;
    text-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
    letter-spacing: -0.5px;
    line-height: 1.2;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 现代化进度系统 */
.progress-container {
    margin-bottom: 32px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(99, 102, 241, 0.05);
}

    .progress-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.05));
        animation: progressShimmer 2.5s ease-in-out infinite;
    }

@keyframes progressShimmer {
    0%, 100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #6366f1 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.3), 0 2px 8px rgba(99, 102, 241, 0.1);
    overflow: hidden;
}

    .progress-fill::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
        animation: progressFlow 2s linear infinite;
    }

    .progress-fill::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 24px;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.6));
        animation: progressGlow 1.8s ease-in-out infinite;
        border-radius: 0 4px 4px 0;
    }

@keyframes progressFlow {
    0%, 100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

@keyframes progressGlow {
    0%, 100% {
        opacity: 0.7;
        transform: scaleX(1);
    }

    50% {
        opacity: 1;
        transform: scaleX(1.2);
    }
}

/* 现代化文本样式 */
.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    font-size: 15px;
    font-weight: 500;
}

.progress-stage {
    text-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
    opacity: 0.95;
    transition: all 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.progress-percent {
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
    font-family: 'Monaco', 'Consolas', 'SF Mono', monospace;
    font-size: 16px;
    color: #6366f1;
}

/* 现代化提示区域 */
.loading-tips {
    position: relative;
    min-height: 28px;
}

    .loading-tips .tip {
        color: #64748b;
        font-size: 15px;
        font-weight: 400;
        opacity: 0;
        transform: translateY(12px) scale(0.95);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        text-shadow: 0 2px 8px rgba(99, 102, 241, 0.05);
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        letter-spacing: 0.2px;
        line-height: 1.4;
    }

        .loading-tips .tip.active {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

/* 现代化响应式设计 */
@media (max-width: 768px) {
    .preloader-content {
        padding: 36px 24px;
        margin: 0 20px;
        border-radius: 20px;
    }

    .logo-placeholder {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }

        .logo-placeholder i {
            font-size: 28px;
        }

    .loading-title {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .progress-text {
        font-size: 14px;
    }

    .loading-tips .tip {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .preloader-content {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .logo-placeholder {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        margin-bottom: 24px;
    }

        .logo-placeholder i {
            font-size: 24px;
        }

    .loading-title {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .progress-container {
        margin-bottom: 24px;
    }

    .progress-bar {
        height: 6px;
        margin-bottom: 12px;
    }
}

/* 高性能动画优化 */
@media (prefers-reduced-motion: reduce) {
    .tenant-preloader,
    .preloader-content,
    .logo-placeholder,
    .loading-spinner,
    .progress-fill,
    .loading-tips .tip,
    .tenant-preloader::before,
    .logo-placeholder::before {
        animation: none !important;
        transition: opacity 0.3s ease !important;
    }

        .tenant-preloader.show {
            opacity: 1;
            visibility: visible;
        }

        .tenant-preloader.fade-out {
            opacity: 0;
        }

        .loading-tips .tip.active {
            opacity: 1;
            transform: none;
        }
}

.amis-scope .antd-Form {
    padding: 8px;
}

/* 页面左侧边栏标题 */
.amis-scope .antd-Form-item--normal > .antd-Form-label {
    color: var(--Page-title-color);
    line-height: var(--Page-title-lineHeight);
    font-size: var(--Page-title-fontSize);
    font-weight: var(--Page-title-fontWeight);
}
